<html><head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Unsafix" rel="Chapter" href="Unsafix.html"><title>Unsafix.socket_opt</title>
</head>
<body>
<code class="code"><span class="keyword">let</span>&nbsp;socket_opt&nbsp;~domain&nbsp;~sock_type&nbsp;~protocol&nbsp;=&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">let</span>&nbsp;s&nbsp;=&nbsp;socket&nbsp;~domain&nbsp;~sock_type&nbsp;~protocol&nbsp;<span class="keyword">in</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">if</span>&nbsp;(<span class="constructor">Obj</span>.magic&nbsp;s:int)&nbsp;=&nbsp;-1&nbsp;<span class="keyword">then</span>&nbsp;<span class="constructor">None</span>&nbsp;<span class="keyword">else</span>&nbsp;<span class="constructor">Some</span>&nbsp;s</code></body></html>